package com.twu.biblioteca;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: tcz
 * Date: 13-7-4
 * Time: 上午10:40
 */
public class ReserveCommand extends Command {

    public ReserveCommand(Biblioteca biblioteca) {
        super(biblioteca);
    }

    @Override
    public void execute() {
        System.out.println("Please input a book id:");
        Scanner scanner = new Scanner(System.in);
        String bookID = scanner.nextLine();
        receiver.reserveBook(bookID);
    }
}
